package org.jeecg.modules.crm.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import org.jeecgframework.poi.excel.annotation.Excel;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: Credit Note
 * @Author: jeecg-boot
 * @Date:   2025-04-29
 * @Version: V1.0
 */
@Data
@TableName("credit_note")
@ApiModel(value="credit_note对象", description="Credit Note")
public class CreditNote implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**Company*/
    @Excel(name = "Company", width = 15, dictTable = "company", dicText = "name", dicCode = "id")
    @Dict(dictTable = "company", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "Company")
    private String company;
	/**Credit Note Type*/
    @Excel(name = "Credit Note Type", width = 15)
    @ApiModelProperty(value = "Credit Note Type")
    private String creditNoteType;
	/**Date*/
    @Excel(name = "Date", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "Date")
    private Date creditDate;
	/**Credit Note No*/
    @Excel(name = "Credit Note No", width = 15)
    @ApiModelProperty(value = "Credit Note No")
    private String creditNoteNo;
	/**Credit Note Notow*/
    @Excel(name = "Credit Note Notow", width = 15)
    @ApiModelProperty(value = "Credit Note Notow")
    private String creditNoteNoTow;
	/**Developer*/
    @Excel(name = "Developer", width = 15, dictTable = "developer", dicText = "name", dicCode = "id")
    @Dict(dictTable = "developer", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "Developer")
    private String developer;
	/**Customer*/
    @Excel(name = "Customer", width = 15, dictTable = "customer", dicText = "name", dicCode = "id")
    @Dict(dictTable = "customer", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "Customer")
    private String customer;
	/**Purchaser*/
    @Excel(name = "Purchaser", width = 15, dictTable = "purchaser", dicText = "name", dicCode = "id")
    @Dict(dictTable = "purchaser", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "Purchaser")
    private String purchaser;
	/**Supplier*/
    @Excel(name = "Supplier", width = 15)
    @ApiModelProperty(value = "Supplier")
    private String supplier;
	/**Name*/
    @Excel(name = "Name", width = 15)
    @ApiModelProperty(value = "Name")
    private String name;
	/**Address*/
    @Excel(name = "Address", width = 15)
    @ApiModelProperty(value = "Address")
    private String address;
	/**Reference No*/
    @Excel(name = "Reference No", width = 15)
    @ApiModelProperty(value = "Reference No")
    private String referenceNo;
}
